package com.lktx.bbfactory.entiy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.lktx.bbfactory.entiy.DTO.GanttConfigDto;
import lombok.Data;
import java.io.Serializable;
import java.util.List;

@Data
@TableName(autoResultMap = true)
public class Product implements Serializable {
    @TableId
    private Long id;
    private Long projectId;
    private String name;
    private String type;
    private Long amount;
    private Long finishAmount;
    private String process;
    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<GanttConfigDto> ganttConfig;
}
